home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1328 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Amiga programmers in deep shit...
  5. Date: 18 Jan 1996 02:26:35 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Distribution: inet
  8. Message-ID: <4dkb4r$em2@maureen.teleport.com>
  9. References: <4ccpsd$d8f@maureen.teleport.com> <jdj68ec2xw7.fsf@pulkka.cs.hut.fi> <4dgkcp$9s5@maureen.teleport.com> <4dh3sh$k3p@serpens.rhein.de>
  10. NNTP-Posting-Host: kelly.teleport.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Michael van Elst (mlelstv@serpens.rhein.de) wrote:
  14. : sschaem@teleport.com (Stephan Schaem) writes:
  15.  
  16. : > Read again... do you see your wrong assumtion? Do you know the
  17. : > concept of a display list? did you even understand what I was talking
  18. : > about?
  19.  
  20. : > Having a writepixels(displaylist) is used to write random pixels,
  21. : > not to write a Hline...
  22.  
  23. : You seem to have no idea what a display list is either.
  24.  
  25.  The abve call is too example the diference ... writepixelS(displaylist)
  26.  return the pointer the the continuation of the displaylist. ( Actually
  27.  writepixel end with : jmp ([a0]), the ID of the next primitive is the 
  28.  funtion adress that take a0 as input and a4 as a drawing context)... 
  29.  
  30.  BTW, I did programmed in performer, opengl on SGI box for a while.
  31.  That dont make me an expert on the subject, but I defenetly know how to 
  32.  design one and know its advantages.
  33.  
  34. : > Now have 5000 pixel in your array... what is faster? The loop above
  35. : > calling setpen/writepixel 5000 time?
  36.  
  37. : Probably takes the same amount of time if you include the time necessary
  38. : to _create_ that list.
  39.  
  40.  Not at all... just storing the paramaters VS calling the functions
  41.  each time make a diference... it affect the cache, it affect the function
  42.  call overhead, and setup. all extra VS a display list.
  43.  SGI GL for example call to drawrect() would store the info to be proce
  44.  ssed at a latter time when the display buffer is flushed.(By user demand or
  45.  system). This methode is also nice for offloading the CPU since the list
  46.  can be parsed by another task (cpu) or by a gfx engine.
  47.  
  48. : > This example apply to lines or any other primitive too,
  49. : > but less dramatic.
  50.  
  51. : That's why you chose the worst cases deliberatly.
  52.  
  53.  It was the simplest to example... Do you want to go into detail
  54.  on why  display lists are not better then a set of individual primitive
  55.  calls? But this time, put your one liner aside, and prove it is a
  56.  false claim with somthing more consistant...
  57.  
  58.  Stephan
  59.